<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./font_3752976_cfa8spuu55b/iconfont.css">
    <style>
        * {
            padding: 0px;
            margin: 0px;
            list-style: none;
        }
        a{
            text-decoration: none;
            color: #6e6b6b;
            font-size: 14px;
        }
        a:hover{
            color: red;
        }
        .page {
            width: 100%;
            background-color: white;
            box-sizing: border-box;
        }

        .head {
            height: 70px;
            width: 1200px;
            margin: 0px auto;
            box-sizing: border-box;
        }

        .head a img {
            width: 185px;
            height: 25px;
            margin: 10px 0px 10px 100px;
        }

        .content {
            height: 600px;
            width: 100%;
            background-color: #5B22BD;
            background: url(./img/O1CN01iyYdem1GQd1yGgA0a_!!6000000000617-0-tps-2000-600.jpg);
            background-repeat: no-repeat;
            background-position: 50%;
            position: relative;
            background-size: cover;

        }

        .content1 {
            height: 600px;
            width: 1680px;
            margin: 0px auto;
            /* background-repeat: no-repeat;
            background-position: 50%; */
            position: relative;
            /* background-size: cover; */

        }

        .img1 {
            display: block;
            height: 200px;
            width: 100%;
            position: relative;
            left: 0px;
            top: 200px;
        }

        .login_box {
            /* border: 1px solid black; */
            width: 350px;
            /* height: 350px; */
            padding: 25px 25px 23px;
            color: #6c6c6c;
            background-color: #fff;
            /* margin: 12px 80px; */
            box-sizing: border-box;
            position: absolute;
            right: 370px;
            top: 120px;
        }

        #erweima {
            position: absolute;
            right: -10px;
            top: -10px;
        }

        .poptip-content {
            font-size: 12px;
            position: absolute;
            top: 10px;
            right: 70px;
            border: 1px solid #F3D995;
            padding: 4px 7px;
            color: #FF9000;
            background-color: #FEFCEE;

        }

        #triangle-right {
            width: 0;
            height: 0;
            border-top: 5px solid transparent;
            border-bottom: 5px solid transparent;
            border-left: 10px solid #FF9000;
            position: absolute;
            right: -10px;
            top: 7px;
        }

        .login-head {
            display: flex;
            margin-top: 20px;
            width: 180px;
            justify-content: space-around;
            box-sizing: border-box;
        }

        .border-butt {
            height: 25px;
            box-sizing: border-box;
        }

        .active{
            border-bottom: 2px solid black;
        }

        label {
            display: block;
            color: #fff;
            width: 40px;
            text-align: center;
            line-height: 40px;
            background-color: #ccc;
        }

        .userinput {
            height: 40px;
            display: flex;
            border: 1px solid #ccc;
            margin-top: 20px;
        }

        .userinput input {
            border: none;
            padding-left: 10px;
            outline: none;
        }

        .pwdinput {
            height: 40px;
            display: flex;
            border: 1px solid #ccc;
            margin-top: 20px;
            align-items: center;
        }

        .pwdinput input {
            border: none;
            padding-left: 10px;
            outline: none;
        }

        .dlBtn {
            width: 100%;
            font-size: 20px;
            padding: 8px 0px;
            background-color: orangered;
            color: #fff;
            border: none;
            border-radius: 5px;
            margin-top: 20px;
        }
        .wb-zfb{
            height: 25px;
            font-size: 12px;
            display: flex;
            align-items: center;
            margin-top: 20px;
        }
        #wb{
            vertical-align: middle;
            color: red;
        }
        #zfb{
            margin-left: 10px;
            vertical-align: middle;
            color: rgb(12, 140, 245);
        }
        .formfoot{
            font-size: 12px;
            display: flex;
            justify-content: end;
            margin-top: 20px;
            margin-bottom: 20px;
        }
        .formfoot a{
            margin-right: 10px;
            font-size: 12px;
        }
        .footer{
            width: 1250px;
            margin: 0 auto;
            
            /* border: 2px solid blue; */
            margin-top: 50px;
            margin-bottom: 10px;
        }
        .first{
            width: 100%;
            padding: 10px 0px;
            border-top: 1px solid #ccc;
            border-bottom: 1px solid #ccc;
        }
        .second{
            width: 100%;
            line-height: 25px;
            font-size: 14px;
            color: #6e6b6b;
        }
        .therd{
            margin-top: 20px;
        }
        /* #noteform{
            display: none;
        }
         */
    </style>
</head>

<body>
   <div id="app">
    <div class="page">
        
        <div class="head">
            <a href="#">
                <img src="https://assets.alicdn.com/g/tm/login/3.0.2/img/logo.png" alt="" @click="tzfn">
            </a>
        </div>
        <div class="content">
            <div class="content1">
                <a class="img1" href="/" ></a>
                <div class="login_box">
                    <!-- <span class="iconfont icon-QRcode " id="erweima" style="color:#FF5A1E; font-size: 80px;"></span> -->
                    <!-- <div class="poptip-content">扫码登录在这里
                        <div id="triangle-right"></div>
                    </div> -->
                    
                    <div class="login-head">
                        <div class="login-head-left border-butt"><a href="#"
                                style="text-decoration: none; color: black;font-size: 18px;font-weight: bold;"  @click="isShow=true;isShow2=false">密码登录</a>
                        </div>
                        <div class="login-head-right border-butt"><a href="#"
                                style="text-decoration: none; color: black;font-size: 18px;font-weight: bold;"  @click="isShow2=true;isShow=false">短信登录</a>
                        </div>
                    </div>
                    <!-- 密码登录显示表单 -->
                    <form action="" id="pwdform" v-show="isShow">
                        <div class="fm-input">
                            <div class="userinput">
                                <label class="icon iconfont icon-yonghufill"></label>
                                <input type="text" id="user" placeholder="账号名/邮箱/手机号">
                            </div>
                            <div class="pwdinput">
                                <label class="icon iconfont icon-tianchongxing-"></label>
                                <input type="password" id="pwd" placeholder="请输入登录密码">
                            </div>
                        </div>
                        <div class="loginBtn">
                            <button class="dlBtn">登录</button>
                        </div>
                        <div class="wb-zfb">
                            <div class="wblogin">
                                <i id="wb" class="icon iconfont icon-weibo"></i>
                                <a href="#">微博登录</a>
                            </div>
                            <div  class="zfblogin">
                                <i id="zfb" class="icon iconfont icon-zhifubaozhifu"></i>
                                <a href="#">支付宝登录</a>
                            </div>
                        </div>
                        <div class="formfoot" >
                            <a href="#" v-for="(item,index) in formfootlist" :key="index">{{item}}</a>
                        </div>
                    </form>
                    <!-- 短信登录显示表单 -->
                    <form action="" id="noteform" v-show="isShow2">
                        <div class="fm-input">
                            <div class="userinput">
                                <label class="icon iconfont icon-shouji"></label>
                                <select name="" id="" style="border: none;width: 50px;text-align: center;outline: none;">
                                    <option value="+86">+86</option>
                                    <option value="+86">+82</option>
                                    <option value="+86">+17</option>
                                    <option value="+86">+1</option>
                                </select>
                                <input type="text" id="user" placeholder="请输入手机号">
                            </div>
                            <div class="pwdinput">
                                <label class="icon iconfont icon-yanzhengma"></label>
                                <input type="password" id="pwd" placeholder="请输入验证码">
                                <a href="#">获取验证码</a>
                            </div>
                        </div>
                        <div class="loginBtn">
                            <button class="dlBtn">登录</button>
                        </div>
                        <div class="wb-zfb">
                            <div class="wblogin">
                                <i id="wb" class="icon iconfont icon-weibo"></i>
                                <a href="#">微博登录</a>
                            </div>
                            <div  class="zfblogin">
                                <i id="zfb" class="icon iconfont icon-zhifubaozhifu"></i>
                                <a href="#">支付宝登录</a>
                            </div>
                        </div>
                        <div class="formfoot">
                            <a href="#">免费注册</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="footer">
            <div class="first">
                <a href="#" v-for="(item,index) in tmfirstlist" :key="index">&nbsp;&nbsp;&nbsp;{{item}}&nbsp;&nbsp;&nbsp;|</a>
            </div>
            <div class="second">
                <span v-for="(item,index) in tmsecondlist" :key="index">{{item}}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </div>
            <div class="therd">
                <img :src=tmtherdlist alt="">
            </div>
        </div>
        
    </div>
   </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/1.1.3/axios.js"></script>


<script>
    let vm = new Vue({
        el: '#app',
        data: {
            tmfirstlist:[],
            tmsecondlist:[],
            tmtherdlist:[],
            formfootlist:[],
            isShow:true,
            isShow2:false
        },
        created() {
            this.getAll()
        },
        methods: {
            getAll(){
                axios.get("http://localhost:3000/getAll")
                .then(res => {
                    console.log(res.data);
                    this.tmfirstlist = res.data.footerFirst
                    this.tmsecondlist = res.data.footerSecond
                    this.tmtherdlist = res.data.footerTherd
                    this.formfootlist = res.data.formFoot
                    // console.log(this.tmtherdlist);
                })
                
                .catch(err => {
                    console.error(err); 
                })
                
            },
            tzfn(){
                window.location.href='http://www.tmall.com'
            }
        },
    })
</script>
</html>